import request from '@/utils/clientRequest.js'
let host = '/academy'
//老高考版本志愿
export const getBalanceHistory =(userType) => {
  return request.post(host+'/volunteer/getBalanceHistory',{userType})
}
export const getBalanceRecord =(id) => {
  return request.post(host+'/volunteer/getBalanceRecord',{id})
}
export const verification =(obj) => {
  return request.post(host+'/volunteer/verification',obj)
}
export const saveExaminee =(obj) => {
  return request.post(host+'/volunteer/saveExaminee',obj)
}
export const getLevel =(provinceName) => {
  return request.post(host+"/volunteer/getLevel?province="+ provinceName)
}
export const getProvince =() => {
  return request.post(host+"/volunteer/getProvince")
}
export const savePreference =(obj) => {
  return request.post(host+"/volunteer/savePreference",obj)
}
export const getCascadeArea =() => {
  return request.post(host+"/volunteer/getCascadeArea")
}
export const generateSolutions =(userType) => {
  return request.post(host+"/volunteer/generateSolutions",{userType})
}
export const getAcademyScore =(obj) => {
  return request.post(host+"/volunteer/getAcademyScore",obj)
}

export const getMajorDetails =(obj) => {
  return request.post(host+"/volunteer/getMajorDetails",obj)
}
export const academyServiceDetail =(obj) => {
  return request.post(host+"/academyService/detail",obj)
}

export const getAcademy =(academyName) => {
  return request.post(host+"/volunteer/getAcademy?academyName="+ academyName)
}
export const getMajor =(name) => {
  return request.post(host+"/curricula/getMajor?name="+ name)
}
export const getCascadeArealabel =(label) => {
  return request.post(host+"/volunteer/getCascadeArea?label="+ label)
}
export const getTargetAcademy =(obj) => {
  return request.post(host+"/volunteer/getTargetAcademy", obj)
}
export const searchAcademy =(obj) => {
  return request.post(host+"/volunteer/searchAcademy", obj)
}
export const saveSingle =(obj) => {
  return request.post(host+"/curricula/saveSingle", obj)
}


//新高考志愿(浙江)
export const saveExamineeZj =(obj) => {
  return request.post(host+'/volunteer/saveExamineeZj',obj)
}
export const savePreferenceZj =(obj) => {
  return request.post(host+"/volunteer/savePreferenceZj",obj)
}
export const generateSolutionsZj =(userType) => {
  return request.post(host+"/volunteer/generateSolutionsZj",{userType})
}
export const getBalanceHistoryZj =(userType) => {
  return request.post(host+'/volunteer/getBalanceHistoryZj',{userType})
}
export const getBalanceRecordZj =(id) => {
  return request.post(host+'/volunteer/getBalanceRecordZj',{id})
}